package com.youdoneed.community.media.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.youdoneed.community.media.entity.Forummediaresource;

@Mapper
public interface ForummediaresourceMapper {
    int deleteByPrimaryKey(String mediaResourceId);

    int insert(Forummediaresource record);

    int insertSelective(Forummediaresource record);

    Forummediaresource selectByPrimaryKey(String mediaResourceId);

    int updateByPrimaryKeySelective(Forummediaresource record);

    int updateByPrimaryKey(Forummediaresource record);
    
    /**
     * 根据帖子id获取媒体资源
     * @param forumMsgId
     * @return
     */
    List<Forummediaresource> getMediaResourceByMsgId(String forumMsgId);

    int deleteByMsgId(String msgId);
}